using System;
using System.Collections.Generic;
using System.Text;
using OneSoft.EntityCore;

namespace BySoft.Server.Common.Schema
{
	[Serializable]
	public class BsBomdetailTable : TableInfo
	{
		public const string C_TABLENAME = "Bs_Bomdetail"; 

		public const string C_BOMDETAILID = "BOMDETAILID";
		public const string C_BOMID = "BOMID";
		public const string C_CHANGENUM = "CHANGENUM";
		public const string C_PARENTMATERIALID = "PARENTMATERIALID";
		public const string C_ISDIRECT = "ISDIRECT";
		public const string C_MATERIALID = "MATERIALID";
		public const string C_MMNUMBER = "MMNUMBER";
		public const string C_SINGLEWEIGHT = "SINGLEWEIGHT";
		public const string C_SINGLENUM = "SINGLENUM";
				
		public BsBomdetailTable()
		{
			_tableName ="Bs_Bomdetail";
		}

		protected static BsBomdetailTable _current;

		public static BsBomdetailTable Current
		{
			get
			{
				if (_current == null )
				{
					Initial();
				}
				return _current;
			}
		}

		private static void Initial()
		{
			_current = new BsBomdetailTable();

			_current.Add(C_BOMDETAILID, new ColumnInfo(C_BOMDETAILID, "", true, typeof(Decimal?)));
			_current.Add(C_BOMID, new ColumnInfo(C_BOMID, "", false, typeof(String)));
			_current.Add(C_CHANGENUM, new ColumnInfo(C_CHANGENUM, "", false, typeof(Decimal?)));
			_current.Add(C_PARENTMATERIALID, new ColumnInfo(C_PARENTMATERIALID, "", false, typeof(String)));
			_current.Add(C_ISDIRECT, new ColumnInfo(C_ISDIRECT, "", false, typeof(String)));
			_current.Add(C_MATERIALID, new ColumnInfo(C_MATERIALID, "", false, typeof(String)));
			_current.Add(C_MMNUMBER, new ColumnInfo(C_MMNUMBER, "", false, typeof(Decimal?)));
			_current.Add(C_SINGLEWEIGHT, new ColumnInfo(C_SINGLEWEIGHT, "", false, typeof(Decimal?)));
			_current.Add(C_SINGLENUM, new ColumnInfo(C_SINGLENUM, "", false, typeof(Decimal?)));
						
		}

		public ColumnInfo BOMDETAILID
		{
			get { return this[C_BOMDETAILID];}
		}

		public ColumnInfo BOMID
		{
			get { return this[C_BOMID];}
		}

		public ColumnInfo CHANGENUM
		{
			get { return this[C_CHANGENUM];}
		}

		public ColumnInfo PARENTMATERIALID
		{
			get { return this[C_PARENTMATERIALID];}
		}

		public ColumnInfo ISDIRECT
		{
			get { return this[C_ISDIRECT];}
		}

		public ColumnInfo MATERIALID
		{
			get { return this[C_MATERIALID];}
		}

		public ColumnInfo MMNUMBER
		{
			get { return this[C_MMNUMBER];}
		}

		public ColumnInfo SINGLEWEIGHT
		{
			get { return this[C_SINGLEWEIGHT];}
		}

		public ColumnInfo SINGLENUM
		{
			get { return this[C_SINGLENUM];}
		}

		
	}
}


